package com.example.vod;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

//因为这个操作没有用到数据库，因此添加 exclude 来进行声明他用不到数据库（默认不去加载数据库的配置）
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
@EnableDiscoveryClient //注册nacos
@ComponentScan(basePackages = {"com.example"})
@Slf4j
public class VodApplication {
    //启动类
    public static void main(String[] args) {
        SpringApplication.run(VodApplication.class);
        System.out.println("VodApplication：视频点播项目启动成功！");
    }
}
